{include file="common/header.tpl"}    
    <div id="vfriendContainer">
        <div id="mainContent3C">
            <div class="vfriendContainer3C">
                <div class="vfriendContent3C">
                	<div class="leftCol">  
                    	{include file="place/box-navigation.tpl"}               	
                    </div>
                    <div class="rightCol">
                        <div class="midCol">
                        	<div class="boxDetail">
                                <div class="sInfo">
                                    <h3>{$row.name}</h3>
                                   	{star point=$row.tpoint person=$row.tperson}
                                    <div class="addr">{$row.addr}, {$row.district_name}, {$row.province_name}</div>
                                    <div class="stat">
                                        <span class="plLike"><strong>{$row.tlike|number_format}</strong> thích</span>
                                        <span class="plCmt"><strong>{$row.tcmt|number_format}</strong> nhận xét</span>
                                        <span class="plStar"><strong>{$row.trate|number_format}</strong> đánh giá</span>
                                        {if $AppUI->id == $row.userid}
                                        	<span class="iEdit"><a href="{link_edit_place placeid=$row.placeid title=$row.name}">Chỉnh sửa</a></span>
                                        {/if}
                                    </div>
                                </div>
                                <div class="sSummary">
                                	<div class="menuPlace">
                                    	<ul>
                                        	<li><a href="javascript:showContent(1);" id="menuPlace1" class="active">Giới thiệu</a></li>
                                            <li><a href="javascript:;" id="menuPlace2">Hình ảnh</a></li>
                                            <li><a href="javascript:;" id="menuPlace3">Bản đồ</a></li>
                                            <li><a href="javascript:showContent(4);" id="menuPlace4">Liên lạc</a></li>
                                            <li><a href="javascript:showContent(5);" id="menuPlace5">Bảng giá</a></li>
                                            <li><a href="javascript:showContent(6);" id="menuPlace6">Khuyến mãi</a></li>
                                            <input type="hidden" name="pplaceid" id="pplaceid" value="{$row.placeid}" />
                                        </ul>
                                    </div>
                                    <div class="content" id="showIntro">
                                    	{$row.content}
                                    </div>
                                    <div class="content" id="showImg" style="display:none;">&nbsp;</div>
                                    <div class="content" id="showMap" style="display:none;">&nbsp;</div>
                                    <div class="content" id="showContact" style="display:none;">
                                        {include file="place/box-contact.tpl"}
                                    </div>
                                    <div class="content" id="showPromote" style="display:none;">
                                        {include file="place/box-promotion.tpl"}
                                    </div>
                                </div>
                                <div class="sComment"> 
									<div class="headerTitle"><h3>Nhận xét của thành viên</h3></div>
									<div id="sComment">																	
									{include file="place/box-comment.tpl"}
									</div>
									{if $AppUI->id > 0}
									<div class="placeCmtInput clearIt" id="formCmt">
										<a name="focusCmt"></a>                                                
										<form method="post" name="frmComment" id="frmComment" action="" enctype="multipart/form-data">
											<input type="hidden" name="pplaceid" id="pplaceid" value="{if isset($intPlaceId) && $intPlaceId > 0}{$intPlaceId}{else}{$row.placeid}{/if}" />
											{if $intHasComment <=0}
											<div class="rat" id="star_rating">
												<label>Chấm điểm:</label>
												<input class="star" type="radio" name="rating-first-comment" value="1"/>
												<input class="star" type="radio" name="rating-first-comment" value="2"/>
												<input class="star" type="radio" name="rating-first-comment" value="3"/>
												<input class="star" type="radio" name="rating-first-comment" value="4"/>
												<input class="star" type="radio" name="rating-first-comment" value="5"/>
												<input class="star" type="radio" name="rating-first-comment" value="6"/>
												<input class="star" type="radio" name="rating-first-comment" value="7"/>
												<input class="star" type="radio" name="rating-first-comment" value="8"/>
												<input class="star" type="radio" name="rating-first-comment" value="9"/>
												<input class="star" type="radio" name="rating-first-comment" value="10"/>
											</div>
											{/if}
											{comment name="pcomment" default="Viết nhận xét" show=2}		
										</form>
									</div>
									<div id="loading" class="loading">
										<p align="center"><img src="{$smarty.const.HOST_STATICS}img/bg/loading-bar.gif" alt="loading" width="88" height="7" border="0" /></p>
										<p align="center">Đang xử lý gửi bình luận của bạn. Vui lòng chờ trong giây lát.</p>
										<p>&nbsp;</p>
									</div>
									{else}
									<div class="notContent">Bạn vui lòng <a href="{$smarty.const.LINK_INDEX_LOGIN}">đăng nhập</a> để gửi bình luận.</div>
									{/if}
                                </div>
                            </div>
                    	</div>
                        <div class="extCol">
                            <div class="boxUserLike" id="boxLike"> 
                                {include file="place/box-user-like.tpl"}
                            </div> 
                      	</div>
                   	</div>
               	</div>
            </div>
        </div>
    </div>  
{include file="common/footer.tpl"}
